package com.etc.service1;

import java.util.List;

import com.etc.entity.User;

public interface UserServiceDao {
	//登录
		public User login(String name,String pwd);
		//注册
		public boolean regUser(String name,String pwd,String role,String status);
		//封禁用户
		public boolean closeUser(int id);
		//解禁用户
		public boolean openUser(int id);
		//模糊搜索用户
		public List<User> searchUser(String username);
		//修改用户信息
		public boolean updateUser(int id,String password,String newpassword);
		//查找全部用户信息
		public List<User> searchAllUser();
		//删除用户
		public boolean deleteUser(int id);
}
